package com.bob.common.bean;

import cn.hutool.json.JSONObject;

/**
 *
 * @author : sun.mt@sand.com.cn
 * @version 1.0.0
 *
 */
public class DiffItem {

	private String groupName;

	private String changeName;

	private String path;

	public DiffItem(String groupName, String changeName, String path) {
		this.groupName = groupName;
		this.changeName = changeName;
		this.path = path;
	}


	public String getPath () {
		return path;
	}


	public String getGroupName () {
		return groupName;
	}



	public void setGroupName (String groupName) {
		this.groupName = groupName;
	}

	@Override
	public int hashCode() {
		return this.path.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		DiffItem i= (DiffItem)obj;
		return this.path.equals(i.getPath());
	}

	@Override
	public String toString () {
		return new JSONObject(this).toJSONString(2);
	}
}
